import 'package:get/get.dart';
import 'package:note/pages/about_app_page/view.dart';
import 'package:note/pages/edit_note_page/view.dart';
import 'package:note/pages/home_page/view.dart';
import 'package:note/pages/note_favorite/view.dart';
import 'package:note/pages/note_info_page/view.dart';
import 'package:note/pages/note_list_page/view.dart';
import 'package:note/pages/read_me_page/view.dart';
import 'package:note/pages/search_page/view.dart';
import 'package:note/pages/set_app/view.dart';
import 'package:note/pages/set_lock_page/view.dart';
import 'package:note/pages/setting_page/view.dart';
import 'package:note/pages/unlock_app_page/view.dart';
import 'package:note/pages/unlock_page/view.dart';
import 'package:note/pages/root/view.dart';

class RouteConfig {
  ///root
  static const String rootPage = '/';

  ///home
  static const String homePage = '/homePage';

  ///解锁App
  static const String unlockAppPage = '/unlockAppPage';

  ///笔记列表页
  static const String notesPage = '/noteListPage';

  ///笔记详情页
  static const String noteInfoPage = '/noteInfoPage';

  ///设置页
  static const String settingPage = '/settingPage';

  ///通用设置页
  static const String setAppPage = '/setAppPage';

  ///编辑笔记页
  static const String editNotePage = '/editNotePage';

  ///ReadMe
  static const String readMePage = '/readMePage';

  ///ReadMe
  static const String aboutAppPage = '/aboutAppPage';

  ///favoriteNoteList
  static const String favoriteNoteList = '/favoriteNoteList';

  ///favoriteNoteList
  static const String searchPage = '/searchPage';

  ///解锁页
  static const String unlockPage = '/unlockPage';

  ///设置锁页
  static const String setLockPage = '/setLockPage';

  static final List<GetPage> getPages = [
    GetPage(name: rootPage, page: () => RootPage()),
    GetPage(name: homePage, page: () => HomePage()),
    GetPage(name: unlockAppPage, page: () => UnlockAppPage()),
    GetPage(name: notesPage, page: () => NoteListPage()),
    GetPage(name: noteInfoPage, page: () => NoteInfoPage()),
    GetPage(name: settingPage, page: () => SettingPage()),
    GetPage(name: editNotePage, page: () => EditNotePage()),
    GetPage(name: readMePage, page: () => ReadMePage()),
    GetPage(name: aboutAppPage, page: () => AboutAppPage()),
    GetPage(name: favoriteNoteList, page: () => NoteFavoritePage()),
    GetPage(name: setAppPage, page: () => SetAppPage()),
    GetPage(name: searchPage, page: () => SearchPage()),
    GetPage(name: unlockPage, page: () => UnlockPage()),
    GetPage(name: setLockPage, page: () => SetLockPage()),
  ];
}
